home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 7
/
Amoszine 7 (Disk 1 of 3).adf
/
ARCHIVES
/
Mikes_Music_Source.lha
/
stereo
/
AZ7-Demo2.AMOS
/
AZ7-Demo2.amosSourceCode
next >
Wrap
AMOS Source Code
|
1995-04-11
|
810b
|
61 lines
' Stereo Demo #2
' By Mike Richmond
' Compicated Stereo Panning demonstartion
Curs Off : Flash Off
V=63 : Rem Left Channel at maximum volume
W=0 : Rem Right Channel at minimum volume
Volume %10,V
Volume %1,W : Rem Set initial volumes
Sam Loop On
Sam Play %11,1 : Rem Start sample playing
Do
Volume %10,V
Volume %1,W : Rem update volumes
If Jleft(1)
Dec V
Inc W
End If
If Jright(1)
Inc V
Dec W
End If
If Jup(1)
Dec V
Dec W
End If
If Jdown(1)
Inc V
Inc W
End If
If Fire(1)
Goto ND
End If
If V>63 Then V=63
If V<0 Then V=0
If W>63 Then W=63
If W<0 Then W=0
W$=Str$(W) : V$=Str$(V)
Home : Print "LEFT:",W$,"RIGHT",V$
Wait Vbl
Loop
ND:
Sam Stop : Rem And stop the sample